﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="DTC.StoredDrugPopup"
	x:Name="Window"
	Title="Хранимый препарат"
	Width="400" Height="550" Style="{StaticResource PopupWindow}" Closing="Window_Closing">
	<Window.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="../Resources/ComboBoxesStyles.xaml"/>
				<ResourceDictionary Source="../Resources/TextBlockStyles.xaml"/>
				<ResourceDictionary Source="../Resources/TextEditStyles.xaml"/>
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</Window.Resources>
	<Grid x:Name="MainGrid" Margin="20">
		<StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch">
			<TextBlock Text="Препарат:"/>
			<ComboBox Name="DrugComboBox"
                      HorizontalAlignment="Stretch"
                      Margin="5,10,0,0"
                      SelectionChanged="DrugComboBox_SelectionChanged"
					  IsEditable="True"
					  HorizontalContentAlignment="Stretch"/>
			<TextBlock Text="Форма выпуска:"
						Margin="0,20,0,0"/>
			<ComboBox Name="IssueFormComboBox"
                      HorizontalAlignment="Stretch"
                      Margin="5,10,0,0"
                      SelectionChanged="IssueFormComboBox_SelectionChanged"/>
			<TextBlock Text="Производитель:"
						Margin="0,20,0,0"/>
			<ComboBox Name="ManufacturerComboBox"
                      HorizontalAlignment="Stretch"
                      Margin="5,10,0,0"
                      SelectionChanged="ManufacturerComboBox_SelectionChanged"/>
			<TextBlock Text="Упаковка:"
						Margin="0,20,0,0"/>
			<ComboBox Name="BoxComboBox"
                      HorizontalAlignment="Stretch"
                      Margin="5,10,0,0"
                      SelectionChanged="BoxComboBox_SelectionChanged"/>
			<TextBlock Text="Количество:"
						Margin="0,20,0,0"/>
			<TextBox Name="CountTextBox"
						Text="{Binding Count}"
						HorizontalAlignment="Stretch"
						Margin="5,10,0,0"/>
		</StackPanel>
	</Grid>
</Window>